//引入mockjs
const Mock = require("mockjs");

//响应模拟数据
Mock.mock("http://api.com", {
  "user|5-100": [
    {
      name: "@cname", //中文名称
      "age|1-100": 100, //100以内随机整数
      birthday: '@date("yyyy-MM-dd")', //日期
      city: "@city(true)" //中国城市
    }
  ]
});
